﻿<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="SampleManage, App_Web_8ukit5sw" title="样品查看" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<ul class="box">
        <li id="submenu-active"><a href="#">样品查看</a>
        <ul>
            <li>
                <asp:LinkButton ID="lbtnSampleList" runat="server" OnClick="lbtnSampleList_Click">HIV抗体样品列表</asp:LinkButton></li><li>
                    <asp:LinkButton ID="lbtnCD4SampleList" runat="server" OnClick="lbtnCD4SampleList_Click">CD4样品列表</asp:LinkButton></li><li><asp:LinkButton ID="lbtnVLSampleList" runat="server" OnClick="lbtnVLSampleList_Click">VL样品列表</asp:LinkButton> </li>
                    </ul></li>
        </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
<!-- 样品列表 -->
<asp:Panel id="pnlSampleList" runat="server" Width="96%" Visible="False">
<H1>HIV抗体样品列表</h1>
    样品编号：<asp:TextBox ID="txtSampleNO" runat="server"></asp:TextBox>
    <asp:Button ID="btnFindSample" runat="server" OnClick="btnFindSample_Click" Text="查找样品" />
    &nbsp;
    <asp:DropDownList id="ddlYear" runat="server">
    </asp:DropDownList><BR />
    <asp:GridView id="gvSampleList" runat="server" OnRowDeleting="gvSampleList_RowDeleting" OnRowDataBound="gvSampleList_RowDataBound" AutoGenerateColumns="False" OnSelectedIndexChanged="gvSampleList_SelectedIndexChanged" AllowPaging="True" OnPageIndexChanging="gvSampleList_PageIndexChanging" PageSize="20">
        <Columns>
            <asp:BoundField DataField="sampleNO" HeaderText="样品编号" />
            <asp:BoundField DataField="sampledate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收样日期"
                HtmlEncode="False" />
            <asp:BoundField DataField="samplename" HeaderText="姓名" />
            <asp:BoundField DataField="samplegender" HeaderText="性别" />
            <asp:BoundField DataField="sampleage" HeaderText="年龄" />
            <asp:BoundField DataField="sampleaddress" HeaderText="地址" Visible="False" />
            <asp:BoundField DataField="samplesource" HeaderText="来样单位" />
            <asp:BoundField DataField="sampleproperty" HeaderText="来样性质" Visible="False" />
            <asp:BoundField DataField="samplesign" HeaderText="收样人" />
            <asp:BoundField DataField="sampleresult" HeaderText="实验结果" />
            <asp:CommandField SelectText="查看详细" ShowSelectButton="True" />
            <asp:TemplateField ShowHeader="False" Visible="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnDelSample2" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <BR />
    <HR />
    样品来源：<asp:DropDownList id="ddlSampleSourceUnit" runat="server" Width="163px" OnSelectedIndexChanged="ddlSampleSourceUnit_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:Button ID="btnFilterSource" runat="server" OnClick="btnFilterSource_Click" Text="查找" /><BR /><BR />
    <asp:Label id="lblMsg1" runat="server"></asp:Label></asp:Panel> <br />
    <asp:Panel id="pnlVLSampleList" runat="server" Width="96%" Visible="false">
                <H1>VL样品列表</h1>
                样品编号：<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                <asp:Button ID="Button3" runat="server" OnClick="btnFindSample_Click" Text="查找样品" />
                &nbsp;
                <asp:DropDownList id="DropDownList5" runat="server">
                </asp:DropDownList><BR />
                <asp:GridView id="gvVLList" runat="server" OnRowDataBound="gvVLList_RowDataBound" AutoGenerateColumns="False" OnSelectedIndexChanged="gvVLList_SelectedIndexChanged1" AllowPaging="True" OnPageIndexChanging="gvVLList_PageIndexChanging" PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="sampleNO" HeaderText="样品编号" />
                        <asp:BoundField DataField="sampledate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收样日期"
                            HtmlEncode="False" />
                        <asp:BoundField DataField="samplename" HeaderText="姓名" />
                        <asp:BoundField DataField="samplecheckdate" DataFormatString="{0:yyyy-MM-dd}"  HeaderText="检测日期" />
                        <asp:BoundField DataField="sampleaddress" HeaderText="地址" Visible="False" />
                        <asp:BoundField DataField="samplesource" HeaderText="来样单位" />
                        <asp:BoundField DataField="samplesign" HeaderText="收样人" />
                        <asp:BoundField DataField="sampleresult" HeaderText="VL结果" />
                         
                        <asp:CommandField SelectText="查看详细" ShowSelectButton="True" />
                        
                    </Columns>
                </asp:GridView>
                <BR />
                <HR />
                样品来源：<asp:DropDownList id="DropDownList6" runat="server" Width="163px" OnSelectedIndexChanged="ddlSampleSourceUnit_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Button ID="Button4" runat="server" OnClick="btnFilterSource_Click" Text="查找" /><BR />
                <BR />
            </asp:Panel>
<asp:Panel id="pnlCD4SampleList" runat="server" Width="96%" Visible="false">
                <H1>CD4样品列表</h1>
                样品编号：<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                <asp:Button ID="Button5" runat="server" OnClick="btnFindSample_Click" Text="查找样品" />
                &nbsp;
                <asp:DropDownList id="DropDownList7" runat="server">
                </asp:DropDownList><BR />
                <asp:GridView id="gvCD4List" runat="server" OnRowDataBound="gvCD4List_RowDataBound" AutoGenerateColumns="False" OnSelectedIndexChanged="gvCD4List_SelectedIndexChanged" AllowPaging="True" OnPageIndexChanging="gvCD4List_PageIndexChanging" PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="sampleNO" HeaderText="样品编号" />
                        <asp:BoundField DataField="sampledate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收样日期"
                            HtmlEncode="False" />
                        <asp:BoundField DataField="samplename" HeaderText="姓名" />
                        <asp:BoundField DataField="samplecheckdate" DataFormatString="{0:yyyy-MM-dd}"  HeaderText="检测日期" />
                        <asp:BoundField DataField="sampleaddress" HeaderText="地址" Visible="False" />
                        <asp:BoundField DataField="samplesource" HeaderText="来样单位" />
                        <asp:BoundField DataField="samplesign" HeaderText="收样人" />
                        <asp:BoundField DataField="sampleresult" HeaderText="CD4T" />
                        <asp:BoundField DataField="sampleresult2" HeaderText="CD8T" />
                        <asp:CommandField SelectText="查看详细" ShowSelectButton="True" />
                        
                    </Columns>
                </asp:GridView>
                <BR />
                <HR />
                样品来源：<asp:DropDownList id="DropDownList8" runat="server" Width="163px" OnSelectedIndexChanged="ddlSampleSourceUnit_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Button ID="Button6" runat="server" OnClick="btnFilterSource_Click" Text="查找" /><BR />
                <BR />
            </asp:Panel>
<!-- 更新修改样品 -->
<asp:Panel id="pnlUpdateSample" runat="server">
<H1>
    查看HIV抗体样品信息</H1><TABLE style="WIDTH: 96%"><TBODY><TR><TD style="WIDTH: 80px">样品编号</TD><TD style="WIDTH: 120px"><asp:Label id="lblSampleNO" runat="server"></asp:Label></TD><TD>收样日期</TD><TD><asp:TextBox id="txtSampleDate2" runat="server" Enabled="False" ReadOnly="True"></asp:TextBox></TD></TR><TR><TD>姓名</TD><TD><asp:TextBox id="txtSampleName2" runat="server" Enabled="False"></asp:TextBox></TD><TD>性别</TD><TD><asp:DropDownList id="ddlGender2" runat="server" Enabled="False" Width="131px"><asp:ListItem Value="0">未知</asp:ListItem>
<asp:ListItem Value="1">男</asp:ListItem>
<asp:ListItem Value="2">女</asp:ListItem>
</asp:DropDownList></TD></TR><TR><TD>年龄</TD><TD><asp:TextBox id="txtSampleAge2" runat="server" Enabled="False"></asp:TextBox></TD><TD>来样单位</TD><TD><asp:DropDownList id="ddlSampleSource2" runat="server" Enabled="False" Width="152px"></asp:DropDownList></TD></TR><!-- 去掉地址及来样性质
<TR><TD>地址</TD><TD>&nbsp;<asp:TextBox id="txtSampleAddress2" runat="server" __designer:wfdid="w3" Visible="False"></asp:TextBox></TD><TD>来样性质</TD><TD><asp:TextBox id="txtSampleProperty2" runat="server" Visible="False"></asp:TextBox></TD></TR>
-->
<TR><TD>收样人</TD><TD><asp:TextBox id="txtSampleSign2" runat="server" Enabled="False"></asp:TextBox></TD><TD>确认实验室结果</TD><TD><asp:TextBox id="txtSampleResult2" runat="server" Enabled="False"></asp:TextBox></TD></TR><TR><TD>报告存放路径</TD><TD colSpan=3><asp:TextBox id="txtSampleReport2" runat="server" Enabled="False" Visible="False" ReadOnly="True"></asp:TextBox></TD></TR><TR><TD colSpan=4><asp:Image id="imgReport" runat="server" Width="600px"></asp:Image> </TD></TR><TR><TD colSpan=4><asp:Button id="btnUpdateSample" onclick="btnUpdateSample_Click" runat="server" Text="修改" Enabled="False"></asp:Button></TD></TR></TBODY></TABLE><asp:LinkButton id="LinkButton2" onclick="LinkButton1_Click" runat="server">返回样品列表</asp:LinkButton> <BR /></asp:Panel> 

<asp:Panel id="pnlCD4View" runat="server">
<H1>
    查看CD4样品信息</H1><TABLE style="WIDTH: 96%"><TBODY><TR><TD style="WIDTH: 80px">样品编号</TD><TD style="WIDTH: 120px"><asp:Label id="lblCD4SampleNO" runat="server"></asp:Label></TD><TD>收样日期</TD><TD><asp:TextBox id="txtCD4Date" runat="server" Enabled="False" ReadOnly="True"></asp:TextBox></TD></TR><TR><TD>姓名</TD><TD><asp:TextBox id="txtCD4Name" runat="server" Enabled="False"></asp:TextBox></TD><TD>
    检测日期</TD><TD>
    <asp:TextBox ID="txtCD4CheckDate" runat="server" Enabled="False"></asp:TextBox></TD></TR><TR><TD>
    收样人</TD><TD><asp:TextBox id="txtCD4Sign" runat="server" Enabled="False"></asp:TextBox></TD><TD>来样单位</TD><TD><asp:DropDownList id="ddlCD4Source" runat="server" Enabled="False" Width="152px"></asp:DropDownList></TD></TR>

<TR><TD>
    CD4T</TD><TD><asp:TextBox id="txtCD4T" runat="server" Enabled="False"></asp:TextBox></TD><TD>
    CD8T</TD><TD><asp:TextBox id="txtCD8T" runat="server" Enabled="False"></asp:TextBox></TD></TR><TR><TD>报告存放路径</TD><TD colSpan=3></TD></TR><TR><TD colSpan=4><asp:Image id="imgCD4" runat="server" Width="600px"></asp:Image> </TD></TR><TR><TD colSpan=4><asp:Button id="Button1" onclick="btnUpdateSample_Click" runat="server" Text="修改" Enabled="False"></asp:Button></TD></TR></TBODY></TABLE><asp:LinkButton id="LinkButton3" onclick="LinkButton1_Click" runat="server">返回样品列表</asp:LinkButton> <BR /></asp:Panel> 

<asp:Panel id="pnlVLView" runat="server">
<H1>
    查看VL样品信息</H1><TABLE style="WIDTH: 96%"><TBODY><TR><TD style="WIDTH: 80px">样品编号</TD><TD style="WIDTH: 120px"><asp:Label id="lblVLSampleNO" runat="server"></asp:Label></TD><TD>收样日期</TD><TD><asp:TextBox id="txtVLDate" runat="server" Enabled="False" ReadOnly="True"></asp:TextBox></TD></TR><TR><TD>姓名</TD><TD><asp:TextBox id="txtVLName" runat="server" Enabled="False"></asp:TextBox></TD><TD>
        检测日期</TD><TD><asp:TextBox id="txtVLCheckDate" runat="server" Enabled="False"></asp:TextBox></TD></TR><TR><TD>
        收样人</TD><TD><asp:TextBox id="txtVLSign" runat="server" Enabled="False"></asp:TextBox></TD><TD>来样单位</TD><TD><asp:DropDownList id="ddlVLSource" runat="server" Enabled="False" Width="152px"></asp:DropDownList></TD></TR>

<TR><TD>
    VL结果</TD><TD><asp:TextBox id="txtVL" runat="server" Enabled="False"></asp:TextBox></TD><TD>
    </TD><TD></TD></TR>
    <TR><TD colSpan=4><asp:Image id="imgVL" runat="server" Width="600px"></asp:Image> </TD></TR><TR><TD colSpan=4><asp:Button id="Button2" onclick="btnUpdateSample_Click" runat="server" Text="修改" Enabled="False"></asp:Button></TD></TR></TBODY></TABLE><asp:LinkButton id="LinkButton4" onclick="LinkButton1_Click" runat="server">返回样品列表</asp:LinkButton> <BR /></asp:Panel> 
</contenttemplate>
    </asp:UpdatePanel>
</asp:Content>

